package io.renren.modules.app.service.index.impl;

import io.renren.modules.app.dao.index.YcRegionDao;
import io.renren.modules.app.entity.index.YcRegionEntity;
import io.renren.modules.app.service.index.YcRegionService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("ycRegionService")
public class YcRegionServiceImpl extends ServiceImpl<YcRegionDao, YcRegionEntity>
        implements YcRegionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YcRegionEntity> page = this.page(
                new Query<YcRegionEntity>().getPage(params),
                new QueryWrapper<YcRegionEntity>()
        );

        return new PageUtils(page);
    }

}